<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018-08-02
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>



<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css"/>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/layui.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/tongyong.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/easyui/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/demo.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>


<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/shequfuwu/jianyiyijian.js"></script>


<html>
<head>
    <title>建议意见</title>
</head>
<body>


<div class="panel panel-default">
    <div class="panel-body">
        <%--查询--%>
        <form class="form-inline">
            <%--添加按钮--%>
            <button type="button" style="margin-left: 15px;margin-right: 15px;" class="btn btn-default navbar-btn"  data-target="#myModal" data-toggle="modal">增加</button>&nbsp;
            <%--按时间查询--%>
            <div  class="input-group input-daterange">
                <input id="shijianyi" type="text" class="form-control">
                <div class="input-group-addon">到：</div>
                <input id="shijianer" type="text" class="form-control">
            </div>
                受理状态:
                <div class="form-group">
                    <select id="zhuangtai" name="interest" class="form-control">
                        <option value="">请选择</option>
                        <option value="1">已受理</option>
                        <option value="2">未受理</option>
                    </select>
                </div>


            <button onclick="ban()" type="button" class="btn btn-default">查询</button>
        </form>

        <table id="table"></table>
    </div>
</div>




</table>


<!-- 模态框 -->
<!-- Modal -->
<div class="modal fade" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">增加意见和建议</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="layui-card-header">基本信息</div>
                    <div class="layui-card-body">
                        <div class="form-group">

                            <label for="order">单据编号:</label>
                            <input type="text" class="form-control" id="order">

                            <label for="menpai">业主门牌:</label>
                            <input type="text" class="form-control" id="menpai">

                            <label for="firstDate">建议时间:</label>
                            <input id="firstDate" type="text" class="form-control">

                            <label for="jiedaiyuangong">接待员工:</label>
                            <input type="text" class="form-control" id="jiedaiyuangong" >


                            <label for="jianyineirong">建议内容:</label>
                            <textarea class="form-control" rows="3" id="jianyineirong"></textarea>




                            <label for="leixing">内容类型:</label>
                            <div class="form-group">
                                <select id="leixing" name="interest" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">建议</option>
                                    <option value="2">意见</option>
                                </select>
                            </div>
                            <label for="firstDate2">受理时间:</label>
                            <input id="firstDate2" type="text" class="form-control">

                            <label for="shoulizhuangtai">受理状态:</label>
                            <div class="form-group">
                                <select id="shoulizhuangtai" name="interest" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">已受理</option>
                                    <option value="2">未受理</option>
                                </select>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button onclick="add2()" type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>









<%--双击打开--%>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 500px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">修改建议意见</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>

                    <input type="hidden" id="yin1">

                   <div class="form-group">
                        <label>编号:</label> <input type="text" class="form-control" id="Sorder" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label>业主门牌:</label> <input type="text" class="form-control" id="Smenpai" readonly="readonly">
                    </div>

                    <div class="form-group">
                        <label>建议时间:</label> <input type="text" class="form-control" id="SfirstDate">
                    </div>
                    <div class
                                 ="form-group">
                        <label>接待员工:</label> <input type="text" class="form-control" id="Sjiedaiyuangong">
                    </div>

                    <div class="form-group">
                        <label>建议内容:</label> <textarea class="form-control" rows="3" id="Sjianyineirong"></textarea>
                    </div>


                    <div class="form-group">
                        <label>内容类型:</label>
                        <div class="form-group">
                            <select id="Sjleixing" name="interest" class="form-control">
                                <option value="-1">请选择</option>
                                <option value="1">建议</option>
                                <option value="2">意见</option>
                            </select>
                        </div>
                    </div>



                    <div class="form-group">
                        <label>受理状态:</label>
                        <div class="form-group">
                            <select id="Sshoulizhuangtai" name="interest" class="form-control">
                                <option value="-1">请选择</option>
                                <option value="1">已受理</option>
                                <option value="2">未受理</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label>受理时间:</label> <input type="text" class="form-control" id="SfirstDate2">
                    </div>



                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="ddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>
</body>
</html>
